package cn.sunxyz.struct.composite;

/**
 * Created by yangrd on 2017/5/12.
 */
public abstract class AbstractFile implements INode {

    protected String name;

    public AbstractFile(String name) {
        this.name = name;
    }

    @Override
    public void add(INode file) {
        System.out.println("对不起，不支持该方法！");
    }

    @Override
    public void remove(INode file) {
        System.out.println("对不起，不支持该方法！");
    }

    @Override
    public INode getChild(int i) {
        System.out.println("对不起，不支持该方法！");
        return null;
    }

}
